package com._5704.website.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum WebsiteExceptionEnum {
    SUCCESS(200,"成功"),
    ERROR(500,"服务端异常"),
    DATA_ERROR(50001,"传入数据异常"),
    TOKEN_ERROR(50002,"TOKEN异常"),
    FILE_ERROR(50003,"文件为空"),
    CODE_ERROR(50004,"验证码不正确或过期"),
    INYITE_CODE_ERROR(50005,"邀请码码不正确"),
    USER_NOT_MACH_PASSWORD(50010,"用户名和密码不匹配"),
    USER_HAS_REGISTERED(50012,"用户已注册"),
    USER_NOT_FOUND(50012,"用户不存在"),
    PWD_NOT_MODIFY(50013,"密码未修改"),
    Insufficient_Permissions(50014,"用户权限不足"),
    USER_IS_IN_BLACKLIST(50015,"用户在黑名单里"),
    CANNOT_OPERATE_ON_ADMIN(50016,"不能对管理员操作权限"),
    PERMISSIONS_CANNOT_EQUAL(50017,"新旧权限不能相等"),
    PICTURE_LIMIT_MAX_SIZE(50017,"图片过大"),
    FILE_READER_ERROR(50017,"文件读取异常"),

    ACTIVITY_NOT_FOUND(50020,"活动不存在"),
    ACTIVITY_NOT_SHOW(50021,"活动不允许查看"),
    ACTIVITY_TIME_illegal(50022,"活动时间早于现在"),
    SHOW_TIME_illegal(50023,"展示时间晚于活动时间"),


    PROJECT_NOT_FOUND(50030,"项目不存在"),
    USER_HAS_PARTICIPATED(50031,"用户已参与项目"),
    MEMBER_HAS_FULL(50032,"项目成员已满"),
    MEMBER_IS_CREATOR(50033,"用户为项目创造者"),
    USER_NOT_PARTICIPATED(50034,"用户未参与项目"),
    USER_NOT_CREATOR_OR_ADMIN(50035,"用户不为项目创造者或者管理员"),





    ;
    private final int code;
    private final String msg;
}
